package com.JZ.QM;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author lyp
 * @email lyp@gmail.com
 * @date 2020/6/22 10:11
 */
@EnableFeignClients(basePackages = "com.JZ.QM.feign")
@EnableDiscoveryClient
@SpringBootApplication
public class ProductMain9011 extends SpringBootServletInitializer {

    public static void main(String[] args){
        SpringApplication.run(ProductMain9011.class,args);
    }

    @Override //为了打包springboot项目
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder){
        return builder.sources(this.getClass());
    }

}
